package spring_sample.client;


import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.rmi.RemoteException;

/**
 * Author: Al-assad 余林颖
 * E-mail: yulinying_1994@outlook.com
 * Date: 2018/2/2 17:15
 * Description: 远程调用对象客户端
 */
public class HelloClient {
    public static void main(String[] args) throws RemoteException {
        Hello hello = new ClassPathXmlApplicationContext("classpath:spring_sample/client/applicationContext.xml")
                .getBean("rmiProxyFactory",Hello.class);
        System.out.println(hello.say("Hello world!"));
    }
}
